import request from "@/utils/request";

// 查询站点列表
export function listBsZd(query) {
  return request({
    url: "/base/bsZd/list",
    method: "get",
    params: query
  });
}
// 获取标段下拉
export function queryZdSelect(query) {
  return request({
    url: "/base/bsZd/getList",
    method: "get",
    params: query
  });
}
// 查询站点详细
export function getBsZd(id) {
  return request({
    url: "/base/bsZd/" + id,
    method: "get"
  });
}

// 新增站点
export function addBsZd(data) {
  return request({
    url: "/base/bsZd",
    method: "post",
    data: data
  });
}

// 修改站点
export function updateBsZd(data) {
  return request({
    url: "/base/bsZd",
    method: "put",
    data: data
  });
}

// 删除站点
export function delBsZd(id) {
  return request({
    url: "/base/bsZd/" + id,
    method: "delete"
  });
}
